package com.sunshine.geek.bytecode.struct.info;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 
 * @author zeqi.cw
 *
 */
@Data
@EqualsAndHashCode(callSuper=false)
@AllArgsConstructor
public class ConstFieldRefInfo extends ConstPoolType {

	private static final int TAG = 9;
	
	private int classInfoIndex;
	private int nameAndTypeIndex;
	@Override
	public int getTag() {
		return TAG;
	}
	@Override
	public String getLabe() {
		return "Consts Field RefInfo";
	}
	@Override
	public String getDetail() {
		StringBuffer sb = new StringBuffer();
		sb.append("TAG is:").append(TAG).append("\r\n");
		sb.append("classInfoIndex value is:").append(classInfoIndex).append("\r\n");
		sb.append("nameAndTypeIndex value is:").append(nameAndTypeIndex);
		return sb.toString();
	}
	


}
